﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MacXponSnBinding
{
    public class LOCAL_PACKING
    {
        //数据库保存数据
        public string DEVICE_TYPE { get; set; }
        public string PRODUCT_CODE { get; set; }
        public string HW_PROVINCE_NAME { get; set; }
        public string MAC { get; set; }
        public string SN { get; set; }
        public string BOX_NO { get; set; }
        public string XPON_SN { get; set; }
        public string SSID { get; set; }
        public string SSID_PWD { get; set; }
        public string MODEM_IP { get; set; }
        public string WEB_USER { get; set; }
        public string WEB_PWD { get; set; }
        public string DEVICE_SERIAL_NUMBER { get; set; }
        public string FACTORY_CODE { get; set; }
        public string HW_VERSION { get; set; }
        public string SW_VERSION { get; set; }
        public string BUILD_TIME { get; set; }
        public string SYSTEM { get; set; }
        public string SYSTEM_VERSION { get; set; }
        public string PRODUCTION_TIME { get; set; }
        //public string SEND_TIME { get; set; }
        public string ONT_TYPE { get; set; }
        public string FACTORY_NAME { get; set; }
        public string BRANCH_NAME { get; set; }
        public string CONTEXT { get; set; }
        public string KEY { get; set; }//GUID，代表一个栈板
        public string PACKING_TIME { get; set; }
        public string PACKING_NUM { get; set; }
    }
    /// <summary>
    /// 软件用的数据
    /// </summary>
    public struct PackingMessage
    {
        //动词/单量/集合
        public string DEVICE_TYPE { get; set; }//产品类型
        public string HW_PROVINCE_NAME { get; set; }//产品省份
        public int LIMIT_GROUP { get; set; }//栈板产品数
        public int LIMIT_PRODUCT_TOTAL { get; set; }//总产品数
        public int SORT_GROUP { get; set; }//当前栈板号
        public int TOTAL_GROUP { get; set; }//总栈板数

        public int SCAN_BOX { get; set; }//当前扫描箱数
        public int SCAN_BOX_TOTAL { get; set; }//总扫描箱数
        public int SCAN_PRODUCT_TOTAL { get; set; }//总扫描产品数

        //下面时栈板用的数据
        public string KEY { get; set; }//栈板唯一标识
        //public string START_SN_GROUP { get; set; }//开始SN
        //public string END_SN_GROUP { get; set; }//结束SN

         
        //打印标签用的标签地址和标签内对象名称
        public string PACKING_BTW_PATH { get; set; }//BTW的位置
        public string BTW_SORT_NAME { get; set; }//栈板号
        public string BTW_GROUP_TOTAL_NAME { get; set; }//总栈板数
        public string BTW_PRODUCT_TOTAL_NAME { get; set; }//打包产品数量
        public string BTW_START_SN_NAME { get; set; }//开始SN
        public string BTW_END_SN_NAME { get; set; }//结束SN
    }

    public struct SNStartAndEnd
    {
        public string StartSn { get; set; }
        public string EndSn { get; set; }
    }

}
